package someTestExcemple.thread;

public class AccountTest1 {
    public static void main(String[] args) {
        //线程安全问题(在多线程环境下，多个线程对共享资源进行并发访问和操作时可能引发的一系列问题。)学习
        Account account = new Account("123456", 100000);
        Thread t1 = new Thread(new DrawThread(account, 80000), "小明");
        Thread t2 = new Thread(new DrawThread(account, 80000),"小红");
        t1.start();
        t2.start();
    }
}
